# -*- coding: UTF-8 -*-
from server.model import Base
from sqlalchemy.sql.functions import now
from sqlalchemy import Column, String, DateTime, Boolean, BigInteger


class SysBaseMenuParameters(Base):
    __tablename__ = 'sys_base_menu_parameters'
    id = Column(BigInteger, primary_key=True, nullable=False, doc='')
    sys_base_menu_id = Column(BigInteger)
    type = Column(String(191), doc='地址栏携带参数为params还是query')
    key = Column(String(191), doc='地址栏携带参数的key')
    value = Column(String(191), doc='地址栏携带参数的值')
    created_at = Column(DateTime, default=now(), doc='')
    updated_at = Column(DateTime, default=now(), doc='')
    deleted_at = Column(DateTime, index=True, doc='')
    deleted = Column(Boolean, default=0, doc='')
